import request from '@/utils/request'

// 查询
export function policiesList(data) {
    return request({
        url: '/library/policies/list',
        method: 'get',
      params: data
    })
}

//详情
export function policiesInfo(query) {
    return request({
        url: '/library/policies/details',
        method: 'get',
        params: query
    })
}

//删除
export function delPolicies(ids) {
    return request({
        url: '/library/policies/' + ids,
        method: 'delete'
    })
}

//新增
export function addPolicies(data) {
    return request({
        url: '/library/policies',
        method: 'post',
        data: data
    })
}

//删除
export function updatePolicies(data) {
    return request({
        url: '/library/policies/',
        method: 'put',
        data: data
    })
}
